<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="/WEB-INF/isquen.tld" prefix="o"%>
<%@ page import="edu.isquen.core.document.model.Document"%>
<%@ page import="edu.isquen.core.user.model.User"%>
<%@ page import="edu.isquen.core.form.model.Form"%>
<%
	Document doc = (Document) request.getAttribute("valObj");
	User user = (User) session.getAttribute(User.front_USER);
	Form form=doc.getForm();	
	String html="";
	if (form != null) {
		html=form.toHtml(doc, null, user).toString();
	}
%>
<form action="<o:Url value='/portal/document/save.action' />" id="contentform" name="contentform" method="post">
	<input name="Submit" target='navTab' type="submit" value="保存">
	<input name="valObj.id" type="hidden" value="<%=doc.getId() %>">
	<input name="valObj.formId" type="hidden" value="<%=doc.getFormId() %>">
	<%=html %>
</form>
